import { instance } from '../utils/request'
// 获取新闻频道
const getChannels = () => {
  return instance({
    url: '/v1_0/user/channels',
    method: 'get'
  })
}
// 获取文章列表
/* 
eslint-disable
*/
const getArticle = ({ channel_id, timestamp }) => {
  return instance({
    url: '/v1_1/articles',
    method: 'get',
    params: {
      channel_id,
      timestamp,
      with_top: 1
    }
  })
}
export { getChannels, getArticle }
